package com.xbongbong.paas.pojo.workflow.settings;

import com.xbongbong.paas.domain.entity.PaasFormEntity;
import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.saas.domain.entity.WorkOrderFormEntity;
import com.xbongbong.sys.domain.entity.DepartmentEntity;
import com.xbongbong.sys.domain.entity.RoleEntity;
import com.xbongbong.sys.domain.entity.UserEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Map;

/**
 * @author 吴峰
 * @date 2021/05/24 9:47
 */
@Getter
@Setter
@ToString
public class WorkflowGetPojo implements Serializable {

    private static final long serialVersionUID = -4378942167181408658L;

    private String corpid;

    private Map<Long, PaasFormEntity> formMap;

    private Map<Long, WorkOrderFormEntity> workOrderFormMap;


    private Map<Long, Map<String, FieldAttrEntity>> formExplainFieldMap;


    private Map<Long, Map<String, FieldAttrEntity>> workOrderFormExplainFieldMap;

    private Map<String, UserEntity> userMap;

    private Map<Long, DepartmentEntity> departmentMap;

    private Map<Integer, RoleEntity> roleMap;
    /**
     * 节点容器
     */
    private Map<Long, String> workflowNodeMap;
    /**
     * 标签容器
     */
    private Map<Long, String> labelMap;

    public WorkflowGetPojo() {
    }

    public WorkflowGetPojo(String corpid, Map<Long, PaasFormEntity> formMap, Map<Long, WorkOrderFormEntity> workOrderFormMap, Map<Long, Map<String, FieldAttrEntity>> formExplainFieldMap,
                           Map<Long, Map<String, FieldAttrEntity>> workOrderFormExplainFieldMap,
                           Map<String, UserEntity> userMap, Map<Long, DepartmentEntity> departmentMap, Map<Integer, RoleEntity> roleMap, Map<Long, String> workflowNodeMap,Map<Long, String> labelMap) {
        this.corpid = corpid;
        this.formMap = formMap;
        this.workOrderFormMap = workOrderFormMap;
        this.formExplainFieldMap = formExplainFieldMap;
        this.workOrderFormExplainFieldMap = workOrderFormExplainFieldMap;
        this.userMap = userMap;
        this.departmentMap = departmentMap;
        this.roleMap = roleMap;
        this.workflowNodeMap = workflowNodeMap;
        this.labelMap = labelMap;
    }
}
